package com.example.design_pattern.factory;

import com.example.design_pattern.domain.Fruit;

public class Client {

    public static void main(String[] args){
        test1();
    }

    private static void test1(){
        FruitFactory factory = new BananaFactory();
        Fruit fruit = factory.createFruit();
        fruit.name();
    }

}
